package com.duotai.duotai1;

/**
 * 设置成为一个父类
 */
public abstract class Animal {
    public void eat(){
        System.out.println("吃东西");
    }

    public void sleep(){
        System.out.println("睡觉");
    }

    public abstract void learn();

}
